{* Smarty *}
{*
 *  This file is part of Urd.
 *
 *  Urd is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 3 of the License, or
 *  (at your option) any later version.
 *  Urd is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program. See the file "COPYING". If it does not
 *  exist, see <http://www.gnu.org/licenses/>.
 *
 * $LastChangedDate: 2008-07-02 22:26:57 +0200 (Wed, 02 Jul 2008) $
 * $Rev: 1260 $
 * $Author: gavinspearhead $
 * $Id: admin_log.tpl 1260 2008-07-02 20:26:57Z gavinspearhead $
 *}
{include file="head.tpl" title=$title}
<br/><h3>{$LN_log_title|capitalize}</h3>
{if $logerrormsg neq ''}
{$logerrormsg}
{else}
<div>
<form method="post" action="admin_log.php" id="logform">
<div>
<input type="hidden" name="sort_dir" value="{$sort_dir}" id="searchdir"/>
<input type="hidden" name="sort" value="{$sort}" id="searchorder"/>
{$LN_log_lines}: <input type="text" name="lines" value="{$lines}" size="6"/>
{$LN_search}: <input type="text" name="search" value="{if $search == ''}<{$LN_search}>{else}{$search|escape:htmlall}{/if}" onfocus="if (this.value=='<{$LN_search}>') this.value='';" size="30"/>
{$LN_log_level}: 
<select name="log_level">
{foreach from=$log_str item=string key=level}
<option value="{$level}" {if $level eq $log_level}selected="selected"{/if}>{$string}</option>
{/foreach}
</select>
<input type="submit" name="submit_button" value="{$LN_search}" class="vbot submit"/>
</div>
<div><br/></div>
<div class="log">
<table class="tasks">
<tr class="head">
<th onclick="submit_sort_log('date')" class="head buttonlike fixwidth5c">{$LN_log_date}</th>
<th onclick="submit_sort_log('time')" class="head buttonlike fixwidth5c">{$LN_log_time}</th>
<th onclick="submit_sort_log('level')" class="head buttonlike fixwidth6c">{$LN_log_level}</th>
<th onclick="submit_sort_log('msg')" class="head buttonlike">{$LN_log_msg}</th>
</tr>
{section name=x loop=$logs}
<tr  class="{cycle values="even,odd" name="cycle1"}">
<td>{$logs[x].date|escape:htmlall}</td>
<td>{$logs[x].time|escape:htmlall}</td>
<td>{$logs[x].level|escape:htmlall}</td>
<td>{$logs[x].msg|escape:htmlall}</td>
</tr>
{/section}
</table>
</div>
</form>
</div>
{/if}


{include file="foot.tpl"}
